package com.local.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "local_site")
public class LocalSite {
    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "site_uuid")
    private String siteUuid;

    @Column(name = "site_name")
    private String siteName;

    @Column(name = "park_uuid")
    private String parkUuid;

    public String getSiteUuid() {
        return siteUuid;
    }

    public void setSiteUuid(String siteUuid) {
        this.siteUuid = siteUuid == null ? null : siteUuid.trim();
    }

    public String getSiteName() {
        return siteName;
    }

    public void setSiteName(String siteName) {
        this.siteName = siteName == null ? null : siteName.trim();
    }

    public String getParkUuid() {
        return parkUuid;
    }

    public void setParkUuid(String parkUuid) {
        this.parkUuid = parkUuid == null ? null : parkUuid.trim();
    }
}